import { get, post, del, put } from "../http";
const api_name = '/admin/acl/role'

export const getPageList = (page, limit, searchObj) => get(`${api_name}/${page}/${limit}`, searchObj)
export const getById = (id) => get(`${api_name}/get/${id}`)
export const save = (role) => post(`${api_name}/save`, role)
export const updateById = (role) => put(`${api_name}/update`, role)
export const getAssign = (roleId) => get(`${api_name}/toAssign/${roleId}`)
export const removeById = (id) => del(`${api_name}/remove/${id}`)
export const removeRows = (idList) => del(`${api_name}/batchRemove`, idList)





